package com.lhd.dao;

import com.lhd.po.Comment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by limi on 2017/10/22.
 */
@Service
public interface CommentDao{
    List<Comment> findByBlogIdAndParentCommentNull(Long blogId);

    List<Comment> findByBlogIdAndTopParentCommentId(@Param("blogId") Long blogId,@Param("topParentCommentId") Long topParentCommentId);

    Comment getCommentByCommentId(Long commentId);

    Integer save(@Param("info") Comment info);
    //List<Comment> findByBlogIdAndParentCommentNull(Long blogId, Sort sort);
}
